<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateActivityPointsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('activity_points', function (Blueprint $table) {
            $table->uuid('id');
            $table->uuid('user_id')->comment("用户id");
            $table->string('point_name')->comment('埋点名称');
            $table->string('point_key')->comment('随机key');
            $table->string('desc')->comment('埋点描述');
            $table->timestamps();
            $table->primary('id');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('activity_points');
    }
}
